home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / ae / code / ax3.00 / checkiconifymsg.c < prev    next >
Encoding:
C/C++ Source or Header  |  1980-01-03  |  619 b   |  33 lines

  1. #include "bbs.h"
  2.  
  3. void CheckIconifyMsg(void)
  4. {
  5.  struct IntuiMessage *IconifyMsg;
  6. ULONG class=0L;
  7.  if(!ICON)
  8.  {
  9.    if(BitPlanes!=0)
  10.    {
  11.      while(IconifyMsg=(struct IntuiMessage *)GetMsg(Iconify->UserPort)) 
  12.      { class=IconifyMsg->Class; ReplyMsg((struct Message *)IconifyMsg); }
  13.       if(class==GADGETUP||class==GADGETDOWN)
  14.       {
  15.           IconifyAE();
  16.        }
  17.    }
  18.    else
  19.    {
  20.      IconifyMsg=(struct IntuiMessage *)GetMsg(MYwindow->UserPort);
  21.      if(IconifyMsg)
  22.      {
  23.       class=IconifyMsg->Class;
  24.       ReplyMsg((struct Message *)IconifyMsg);
  25.       if(class==CLOSEWINDOW)
  26.       {
  27.           IconifyAE();
  28.        }
  29.      }
  30.    }
  31.  }
  32. }
  33.